home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / misc-headers / sys⁄dir.h < prev    next >
Encoding:
Text File  |  1994-05-24  |  920 b   |  42 lines  |  [TEXT/EMAC]

  1. /*
  2.  * This file is part of a Macintosh port of GNU Emacs.
  3.  * Copyright (C) 1993, 1994 Marc Parmet.  All rights reserved.
  4.  *
  5.  * GNU Emacs is distributed in the hope that it will be useful,
  6.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8.  * GNU General Public License for more details.
  9.  */
  10.  
  11. #ifndef __SYS_DIR__
  12. #define __SYS_DIR__
  13.  
  14. #include "sys/param.h"
  15.  
  16. #if defined(powerc)
  17. #pragma options align=mac68k
  18. #endif
  19.  
  20. struct direct {
  21.     char d_name[MAXNAMLEN];        // name of file, C string
  22.     unsigned short d_namlen;    // length of above C string
  23.     long d_ino;                    // To keep Emacs happy, always set to 1.
  24. };
  25.  
  26. typedef struct DIR {
  27.     char dd_volumes;
  28.     short dd_vRefNum;
  29.     long dd_drDirID;
  30.     int dd_index;
  31. } DIR;
  32.  
  33. #if defined(powerc)
  34. #pragma options align=reset
  35. #endif
  36.  
  37. extern DIR *opendir();
  38. extern struct direct *readdir();
  39. extern int closedir();
  40.  
  41. #endif
  42.